// 先导入变量
@use './_variables' as *;
@use './_mixins' as *;
// 头部导航组件样式
.header {
  height: $header-height;
  background: $background-color-white;
  box-shadow: $box-shadow-light;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: $z-index-fixed;

  .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  &-logo {
    height: 40px;
    
    img {
      height: 100%;
    }
  }

  &-nav {
    display: flex;
    align-items: center;
    gap: $spacing-large;

    &-item {
      position: relative;
      padding: $spacing-small 0;
      
      &:hover {
        .header-dropdown {
          display: block;
        }
      }
    }

    &-link {
      color: $text-regular;
      font-size: $font-size-base;
      transition: $transition-base;
      
      &:hover,
      &.active {
        color: $primary-color;
      }
    }
  }

  &-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: $background-color-white;
    border-radius: $border-radius-base;
    box-shadow: $box-shadow-base;
    padding: $spacing-small 0;
    
    &-item {
      padding: $spacing-small $spacing-base;
      color: $text-regular;
      transition: $transition-base;
      
      &:hover {
        background: $background-color-base;
        color: $primary-color;
      }
    }
  }

  &-auth {
    display: flex;
    align-items: center;
    gap: $spacing-base;
  }
} 